<include file="public@header"/>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>所有菜单</h5>
                    <div class="ibox-tools">
                        <a href="{:url('Menu/index')}" class="btn btn-primary btn-xs">后台菜单</a>
                        <a href="{:url('Menu/add')}" class="btn btn-primary btn-xs">添加菜单</a>
                        <a href="#" class="btn btn-primary btn-xs active">所有菜单</a>
                    </div>
                    </div>
                    <form class="form-horizontal js-ajax-form" action="{:url('menu/listorders')}" method="post">
                    <div class="ibox-content">
                        <div class="table-actions">
                            <a class="btn btn-primary btn-sm js-ajax-dialog-btn" href="{:url('menu/exportMenuLang')}" data-msg="您确定生成菜单多语言包吗？请确保应用目录下lang目录可写！">生成菜单多语言包</a>
                            <a class="btn btn-warning btn-sm" href="{:url('menu/getactions')}">导入新菜单</a>
                        </div>
                        <div class="alert alert-warning" style="margin: 0 0 5px 0;">
                             请在开发人员指导下进行以上操作！
                        </div>
                        <table class="table table-hover table-bordered table-list">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>菜单英文名称</th>
                                    <th>状态</th>
                                    <th>管理操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name="menus" item="vo">
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.name}:{$vo.app}/{$vo.controller}/{$vo.action}</td>
                                        <td>
                                            <if condition="$vo['status'] eq 1">
                                            显示
                                            <else />
                                            隐藏
                                            </if>
                                        </td>
                                        <td>
                                            <a href="{:url('menu/edit',array('id'=>$vo['id']))}">编辑</a>
                                            <a class="js-ajax-delete" href="{:url('menu/delete',array('id'=>$vo['id']))}">删除</a>
                                        </td>
                                    </tr>
                                </foreach>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <th>ID</th>
                                    <th>菜单英文名称</th>
                                    <th>状态</th>
                                    <th>管理操作</th>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                        </form>
                    </div>
                </div>
        </div>
    </div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>